import store from 'tap-ui/src/store'
import Layout from 'tap-ui/src/views/layout/Layout'

const addRouterMap = [
  {
    path: '/',
    component: Layout,
    hidden: true,
    redirect: 'test',
    children: [
      {
        path: 'test',
        component: () => import('../views/test/test')
      },
      {
        path: '/taskList1',
        component: () => import('../views/pm/cbbPmTaskProgress/indexForMyMission.vue'),
        hidden: true
      }
    ]
  },
  {
    path: '/fullTest',
    component: () => import('../views/test/testFull'),
    hidden: true
  },
  {
    path: '/taskList',
    component: () => import('../views/pm/cbbPmTask/index.vue'),
    hidden: true
  },
  {
    path: '/taskExecute',
    component: () => import('../views/pm/cbbPmTask/taskExecute.vue'),
    hidden: true
  },
  {
    path: "/progressGanttFullScreen",
    component: resolve =>
      require(["../views/ganttChart/WBSGantt.vue"], resolve),
    name: "progressGanttFullScreen",
    meta: { title: "WBS-甘特图", icon: "index", keepAlive: false }
  }
]

store.dispatch('MergeRoutes', addRouterMap)
